Skip to content

Fix clippy lint on rust 1.91#3698

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:fix-cargo-lint
Oct 31, 2025
Merged

Fix clippy lint on rust 1.91#3698
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:fix-cargo-lint

Conversation

@Earlopain

Copy link
Copy Markdown
Collaborator
Compiling ruby-prism v1.6.0 (/home/runner/work/prism/prism/rust/ruby-prism)
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> ruby-prism/build.rs:148:14
    |
148 |         _ => kind.to_string(),
    |              ^^^^^^^^^^^^^^^^ help: consider using: `kind.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#implicit_clone
    = note: `-D clippy::implicit-clone` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`

```
Compiling ruby-prism v1.6.0 (/home/runner/work/prism/prism/rust/ruby-prism)
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> ruby-prism/build.rs:148:14
    |
148 |         _ => kind.to_string(),
    |              ^^^^^^^^^^^^^^^^ help: consider using: `kind.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#implicit_clone
    = note: `-D clippy::implicit-clone` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`
```
@kddnewton
kddnewton merged commit b7d1879 into ruby:main Oct 31, 2025
62 checks passed
@Earlopain
Earlopain deleted the fix-cargo-lint branch December 3, 2025 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants